
public class StringToDouble {
public static void main(String[] args) {
	double d1=50.56789d;
	String s1=String.valueOf(d1);
	System.out.println(s1+"\t"+s1.length());
	
	double d2=20.40d;
	String s2=Double.toString(d2);
	System.out.println(s2+"\t"+s2.length());
	
	double d3=15.30d;
	String s3=""+d3;
	System.out.println(s3+"\t"+s3.length());
	

}
}
